<template>
  <div class="exception">
    <div class="msg">
      <h1>你要去的页面找不到了</h1>
      <img src="@/assets/images/welcome.png" alt="" />
    </div>
    <el-button @click="goHome" class="btn">回首页</el-button>
  </div>
</template>
<script>
export default {
  name: 'exception',
  methods: {
    goHome() {
      this.$router.push('/');
    },
  },
};
</script>
<style lang="scss">
.exception {
  position: relative;
  .msg {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    h1 {
      font-size: 36px;
      margin-right: 50px;
    }
  }
  .btn {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    bottom: 100px;
    font-size: 18px;
  }
}
</style>
